package com.example.academic_affairs_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.academic_affairs_system.model.entity.AasCourses;
import com.example.academic_affairs_system.model.vo.courses.CoursesVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 课程表 Mapper 接口
 *
 * @author hjx
 * @since 2023-01-31
 */
public interface AasCoursesMapper extends BaseMapper<AasCourses> {
  @Select("select `id` as coursesId, `name`, `type`, `desc` from aas_courses where enabled = 1")
  List<CoursesVO> selectCourseVOList(IPage<CoursesVO> page);
}
